﻿using System;
using System.Collections.Generic;
using GianosNET.Common.Classes;

namespace ClientApp.Classes
{
    internal class ServiceInfoExt : ServiceInfo
    {
        public RemotedClass.RemotedClassStatusEnum ActualServiceState { get; set; }

        public ServiceInfoExt(ServiceInfo si)
            : this(
                si.SvcId, si.ServiceName, si.Version, si.InstanceName, si.ServiceType, si.Gestore, si.MainLogId,
                si.ServiceLogId, si.ServiceStatus, si.LoopingStatus, si.LoopingPause)
        {
        }

        public ServiceInfoExt(
            Guid svcId, string serviceName, string version, string instanceName, string serviceType, string gestore, 
            Guid mainLogId, Dictionary<Guid, string> svcLogId,
            RemotedClass.RemotedClassStatusEnum serviceStatus, LoopingService.LoopingStateEnum loopingStatus,
            int loopingPause)
            : base(
                svcId, serviceName, version, instanceName, serviceType, gestore, mainLogId, svcLogId, serviceStatus,
                loopingStatus, loopingPause)
        {
            ActualServiceState = serviceStatus;
        }
    }

    internal class ServiceInfoExtCollection : List<ServiceInfoExt>{ }
}
